#pragma once

//#include "DxDevice.h"

class GameEngine;
class Effect;
#include "../../Forest/TreeNode.h"

class Quad: public TreeNode
{
public:
	Quad(const D3DXVECTOR3& pos);
	virtual ~Quad();

	void Draw();
	void SetTexture(const ID3D10ShaderResourceView* tex);

private:
	void Init();

	D3DXVECTOR3 m_Pos;

	Effect* m_Effect;
	ID3D10InputLayout* m_VertexLayoutPtr;
	ID3D10Buffer* m_VertexBufferPtr;
	ID3D10Buffer* m_IndexBuffer;
	ID3D10ShaderResourceView* m_Texture;
	bool m_Armed;

	Quad(const Quad &t);
	Quad& operator= (const Quad &t);
};